/**
 * 
 */
package org.springyu.codegenerator.utils;

import org.apache.commons.lang.StringUtils;
 
 

/**
 * <p>Title: 类CodegenUtil.java的实现描述：</p>
 * <p>Description:  </p>
 * <p>Copyright: springyu技术有限公司 Copyright (c) 2012</p>
 * <p>Company: springyu技术有限公司</p>
 * @author springyu 2012-8-25
 */
public class CodegenUtil {
	
	
	public static String changeToBoName(String tableName){
		String str1=StringUtils.lowerCase(tableName);
		int index = str1.indexOf("_");
		if(index == -1)
			return StringUtils.capitalize(str1);
		String [] aa=str1.split( "_");
		String s = "";
		for(int i=1;i<aa.length ;i++){
			
			s+=StringUtils.capitalize(aa[i]);
		}
		
		
		return s;
	}

}
